package com.cn.dream_order_server.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Data
@Document(indexName = "wlcorderorder",type = "orderorder_wlc", shards = 5, replicas = 2)
public class OrderOrder implements Serializable {
    @Id
    @Field(type =FieldType.Text)
    private String orderId;
    @Field(index = false)
    private String userId;
    @Field(index = false)
    private String siteId;
    @Field(index = false)
    private String paytypeId;
    @Field(type = FieldType.Keyword)
    private Date placeTime;
    @Field(index = false)
    private Date payTime;
    @Field(index = false)
    private String payMode;
    @Field(index = false)
    private Integer orderTotal;
    @Field(index = false)
    private String serialNumber;
    @Field(index = false)
    private Integer discountsMoney;
    @Field(index = false)
    private String activitytypeId;
    @Field(type = FieldType.Keyword)
    private String ordertypeId;
    @Field(index = false)
    private String orderOther1;//物流id
    @Field(index = false)
    private String orderOther2;//图片
    @Field(type = FieldType.Keyword)
    private Integer orderOther4;//管理员查看订单状态
    @Field(index = false)
    private Integer orderOther5;
    @Field(index = false)
    private byte[] orderOther3;
    
    private OrderPaytype orderPaytype;//支付状态对象

    private OrderPeymode orderPeymode;//支付方式对象

    private OrderOrdertype orderOrdertype;//订单状态对象

    private UserSite userSite;//用户地址对象

    private Integer shoppingNum;//商品数量

    private OrderOrdertypeManage orderOrdertypeManage;//管理员查看订单对象

    private List<OrderOrderdetails> orderOrderdetailsList;//订单详情集合

    private OrderLogistics orderLogistics;//物流对象

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId == null ? null : siteId.trim();
    }

    public String getPaytypeId() {
        return paytypeId;
    }

    public void setPaytypeId(String paytypeId) {
        this.paytypeId = paytypeId == null ? null : paytypeId.trim();
    }

    public Date getPlaceTime() {
        return placeTime;
    }

    public void setPlaceTime(Date placeTime) {
        this.placeTime = placeTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayMode() {
        return payMode;
    }

    public void setPayMode(String payMode) {
        this.payMode = payMode == null ? null : payMode.trim();
    }

    public Integer getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(Integer orderTotal) {
        this.orderTotal = orderTotal;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber == null ? null : serialNumber.trim();
    }

    public Integer getDiscountsMoney() {
        return discountsMoney;
    }

    public void setDiscountsMoney(Integer discountsMoney) {
        this.discountsMoney = discountsMoney;
    }

    public String getActivitytypeId() {
        return activitytypeId;
    }

    public void setActivitytypeId(String activitytypeId) {
        this.activitytypeId = activitytypeId == null ? null : activitytypeId.trim();
    }

    public String getOrdertypeId() {
        return ordertypeId;
    }

    public void setOrdertypeId(String ordertypeId) {
        this.ordertypeId = ordertypeId == null ? null : ordertypeId.trim();
    }

    public String getOrderOther1() {
        return orderOther1;
    }

    public void setOrderOther1(String orderOther1) {
        this.orderOther1 = orderOther1 == null ? null : orderOther1.trim();
    }

    public String getOrderOther2() {
        return orderOther2;
    }

    public void setOrderOther2(String orderOther2) {
        this.orderOther2 = orderOther2 == null ? null : orderOther2.trim();
    }

    public Integer getOrderOther4() {
        return orderOther4;
    }

    public void setOrderOther4(Integer orderOther4) {
        this.orderOther4 = orderOther4;
    }

    public Integer getOrderOther5() {
        return orderOther5;
    }

    public void setOrderOther5(Integer orderOther5) {
        this.orderOther5 = orderOther5;
    }

    public byte[] getOrderOther3() {
        return orderOther3;
    }

    public void setOrderOther3(byte[] orderOther3) {
        this.orderOther3 = orderOther3;
    }



}